
package com.limoilux.cobolux.ui.text;

import org.eclipse.cobol.ui.common.IReferenceFormatConstants;
import org.eclipse.cobol.ui.common.text.COBOLWordDetector;
import org.eclipse.jface.text.rules.IToken;
import org.eclipse.jface.text.rules.WordRule;

public class CobolWordRule extends WordRule
{

	public CobolWordRule(IToken defaultToken)
	{
		super(new COBOLWordDetector(IReferenceFormatConstants.FIXED_FORMAT), defaultToken);
	}

	public void addWords(String[] words, IToken token)
	{
		for (int i = 0; i < words.length; i++)
		{
			this.addWord(words[i], token);
		}
	}

}
